<script>
	export default {
		onLaunch: function() {
				// #ifdef APP-PLUS
			plus.navigator.closeSplashscreen();
				
				// 判断是否是平板
				uni.getSystemInfo({
					success: (res)=>{
						if(res.windowWidth > 500){
							plus.screen.lockOrientation('landscape-primary'); //平板横屏锁定
							console.log("平板横屏锁定")
						}else{
							plus.screen.lockOrientation('portrait-primary'); //手机竖屏锁定
							console.log("手机竖屏锁定")
						}
					}
				});
             // #endif
			// console.log('App Launch')
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import '@/common/uni.css';
	body{background-color: #ecece1;}
</style>
